export namespace enumerator {
	
	export class PortDetails {
	    Name: string;
	    IsUSB: boolean;
	    VID: string;
	    PID: string;
	    SerialNumber: string;
	    Product: string;
	
	    static createFrom(source: any = {}) {
	        return new PortDetails(source);
	    }
	
	    constructor(source: any = {}) {
	        if ('string' === typeof source) source = JSON.parse(source);
	        this.Name = source["Name"];
	        this.IsUSB = source["IsUSB"];
	        this.VID = source["VID"];
	        this.PID = source["PID"];
	        this.SerialNumber = source["SerialNumber"];
	        this.Product = source["Product"];
	    }
	}

}

